package cz.cacek.ebook.packager;

import java.applet.Applet;
import java.awt.BorderLayout;

import javax.swing.JScrollPane;
import javax.swing.UIManager;

/**
 * Applet class for using packager on web.
 * @author Tom� Darmovzal [tomas.darmovzal (at) seznam.cz]
 * @author Josef Cacek [josef.cacek (at) atlas.cz]
 * @author $Author: kwart $
 * @version $Revision: 1.3 $
 * @created $Date: 2007/07/13 14:00:32 $
 */
public class PackagerGUIApplet extends Applet {

	private static final long serialVersionUID = -7495985796601249434L;

	/* (non-Javadoc)
	 * @see java.applet.Applet#init()
	 */
	public void init() {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            System.err.println("Cannot set Look&Feel.");
        }
		this.setLayout(new BorderLayout());
		NewEbGui gui = new NewEbGui();
		JScrollPane scrollPane = new JScrollPane(gui);

		this.add(scrollPane);
		this.add(gui.getJMenuBar(),BorderLayout.NORTH);


	}
}
